/**
 * @param {HTMLElement} el
 * @param {number} opacity
 */
export function setElementOpacity(el: HTMLElement, opacity: number): void {
  if (!el) return
  try {
    el.style.opacity = opacity.toString()
  } catch (e) {
    console.error('Error setting element opacity:', e)
  }
} 